cmake_minimum_required(VERSION 2.8.3)
project(fixed_nav)
set(CMAKE_CXX_STANDARD 14) # necessary for some systems
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
  actionlib
  geometry_msgs
  move_base_msgs
  roscpp
  tf
  visualization_msgs
)


###################################
## catkin specific configuration ##
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## INCLUDE_DIRS: uncomment this if you package contains header files
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
  # INCLUDE_DIRS include
#  LIBRARIES robot_navigation
  CATKIN_DEPENDS actionlib geometry_msgs move_base_msgs roscpp tf visualization_msgs
#  DEPENDS system_lib
)

###########
## Build ##
###########

## Specify additional locations of header files
## Your package locations should be listed before other locations
# include_directories(include)
include_directories(
  ${catkin_INCLUDE_DIRS}
)

# sth wrong when re-compile it

# add_executable(move_specified src/move_specified.cpp)
# target_link_libraries(move_specified ${catkin_LIBRARIES})

add_executable(move_to_goal src/move_to_goal.cpp)
target_link_libraries(move_to_goal ${catkin_LIBRARIES})
